package com.atguigu.hellomp.mapper;

import com.atguigu.hellomp.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * ClassName: UserMapper
 * Description: User实体类的持久层接口
 * 1. BaseMapper是MyBatisPlus提供的通用Mapper
 *
 * @author Taeyang
 * @date 2025/3/5
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {
    /**
     * 分页查询
     * @param page 分页规则
     * @return 当前页数据
     */
    IPage<User> selectUserPage(IPage<User> page);
}
